<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let hang = prompt("请输入行数");
      let lie = prompt("请输入列数");
      for (let i = 0; i <= hang; i++) {
        for (let j = 0; j <= lie; j++) {
          document.write("1");
        }
        document.write("<br>");
      }
    </script>
  </body>
</html>
